package com.cspg.design.bean.userInfoBean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;
import java.util.Date;

@Entity(indexes = {
        @Index(value = "date DESC", unique = true)
})
public class UserInfoBean {

    @Id
    private Long id;

    @NotNull
    private String userName;
    private String password;
    private String token;
    private java.util.Date date;
    private String logon;
    private String role;
    private String unit;
    @Generated(hash = 1551212625)
    public UserInfoBean(Long id, @NotNull String userName, String password,
            String token, java.util.Date date, String logon, String role,
            String unit) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.token = token;
        this.date = date;
        this.logon = logon;
        this.role = role;
        this.unit = unit;
    }
    @Generated(hash = 1818808915)
    public UserInfoBean() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getUserName() {
        return this.userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getPassword() {
        return this.password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getToken() {
        return this.token;
    }
    public void setToken(String token) {
        this.token = token;
    }
    public java.util.Date getDate() {
        return this.date;
    }
    public void setDate(java.util.Date date) {
        this.date = date;
    }
    public String getLogon() {
        return this.logon;
    }
    public void setLogon(String logon) {
        this.logon = logon;
    }
    public String getRole() {
        return this.role;
    }
    public void setRole(String role) {
        this.role = role;
    }
    public String getUnit() {
        return this.unit;
    }
    public void setUnit(String unit) {
        this.unit = unit;
    }




}
